import request from '@/utils/request'

export function AddShowTemp(data) {
  return request({
    url: '/api/project/show/AddShowTemp',
    method: 'post',
    data
  })
}

export function GetShowTemps(pageIndex, pageSize, keyword) {
  return request({
    url: '/api/project/show/GetShowTemps',
    method: 'get',
    params: {
      pageIndex, pageSize, keyword
    }
  })
}

export function GetConfigFields(ids) {
  return request({
    url: '/api/project/show/GetConfigFields',
    method: 'get',
    params: {
      ids
    }
  })
}

export function GetShowConfig(id) {
  return request({
    url: '/api/project/show/GetShowConfig',
    method: 'get',
    params: {
      id
    }
  })
}
export function SetShowConfig(id, fields) {
  return request({
    url: '/api/project/show/SetShowConfig',
    method: 'get',
    params: {
      id,
      fields
    }
  })
}